package com.example.smartf.config;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

import javax.xml.ws.Service;

@Configuration
public class WebSocketConfig {
    //在外部tomcat上运行需要注释
    @Bean
    public ServerEndpointExporter serviceEndpointExporter (){
        return new ServerEndpointExporter();
    }
}
